﻿<%@ Page Language="C#" AutoEventWireup="true"  Inherits="GovernmentOfficeProject.common.view.ViewPageBase" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>基本资料</title>
    <link rel="stylesheet" type="text/css" href="/lib/easyui/themes/bootstrap/easyui.css"/>  
    <link rel="stylesheet" type="text/css" href="/lib/easyui/themes/icon.css"/>  
    <script type="text/javascript" src="/lib/easyui/jquery-1.8.0.min.js"></script>   
    <script type="text/javascript" src="/lib/easyui/jquery.easyui.min.js"></script>  
    <script type="text/javascript" src="/lib/easyui/plugins/jquery.datagrid.js"></script>  
    <script type="text/javascript" src="/lib/easyui/locale/easyui-lang-zh_CN.js"></script> 
   <style type="text/css">  
        html,body{padding:2px; margin:0;font-family:helvetica,tahoma,verdana,sans-serif;font-size:12px;}
        #fm{  
            margin:0;  
            padding:5px 30px;  
        }  
        .ftitle{  
            font-size:14px;  
            font-weight:bold;  
            padding:5px 0;  
            margin-bottom:10px;  
            border-bottom:1px solid #ccc;  
        }  
        .fitem{  
            margin-bottom:8px;  
        }  
        .fitem label{  
            display:inline-block;  
            width:50px;  
            text-align:right;
            padding-right:15px;
        }  
    </style>
    
    <script type="text/javascript">
        
        $(document).ready(function() {
            $("#fm").form('load','/handler/SystemHandler.ashx?Action=modifyInfo');
        });

        function saveUser() {
            $('#fm').form('submit', {
            url: '/handler/SystemHandler.ashx?Action=saveUserInfo',
                onSubmit: function() {
                    return $(this).form('validate');
                },
                success: function(result) {
                    var result = eval('(' + result + ')');
                    if (!result) {
                        $.messager.show({
                            title: '错误',
                            msg: '保存失败！'
                        });
                    } else {
                    $.messager.show({
                        title: '提示',
                        msg: '保存成功！'
                    });
                    }
                }
            });  
        }
    </script>  
</head>
<body>
    <div>
        <form id="fm" method="post" novalidate>  
            <div class="fitem">  
                <label>姓名</label>  
                <input name="RealName" class="easyui-validatebox" required="true"/>  
            </div>  
            <div class="fitem">  
                <label>性别</label>  
                男<input name="Sex" type="radio" value="男" checked/>  
                女<input name="Sex" type="radio" value="女"/>  
            </div> 
            <div class="fitem">  
                <label>移动电话</label>  
                <input name="MobilePhone"/>  
            </div>
            <div class="fitem">  
                <label>固定电话</label>  
                <input name="Telephony" />  
            </div>     
            <div class="fitem">  
                <label>电子邮件</label>  
                <input name="Email" class="easyui-validatebox" validType="email"/>  
            </div> 
            <div class="fitem">  
                <label>QQ号码</label>  
                <input name="QQ"/>  
            </div>   
            <div class="fitem">  
                <label>工作地址</label>  
                <input name="OfficeAddress" style="width:400px;"/>  
            </div>   
            <div class="fitem">  
                <label>家庭地址</label>  
                <input name="HomeAddress" style="width:400px;"/>  
            </div>
            <div class="fitem" style="padding-left:65px;padding-top:5px;">  
                <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="saveUser()">保存</a>  
            </div>  
        </form>  
    </div>
</body>
</html>
